package com.itheima.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/path/*")
public class PathServlet extends BaseServlet {
    //页面跳转
    protected void home(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        //服务器端跳转
        req.getRequestDispatcher("/WEB-INF/pages/home/main.jsp").forward(req,resp);
    }
}
